home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / me39src1.arc / EFUNC.H < prev    next >
C/C++ Source or Header  |  1987-06-28  |  16KB  |  417 lines

  1. /*    EFUNC.H:    MicroEMACS function declarations and names
  2.  
  3.         This file list all the C code functions used by MicroEMACS
  4.     and the names to use to bind keys to them. To add functions,
  5.     declare it here in both the extern function list and the name
  6.     binding table.
  7.  
  8. */
  9.  
  10. /*    External function declarations        */
  11.  
  12. extern  int     ctrlg();                /* Abort out of things          */
  13. extern  int     quit();                 /* Quit                         */
  14. extern  int     ctlxlp();               /* Begin macro                  */
  15. extern  int     ctlxrp();               /* End macro                    */
  16. extern  int     ctlxe();                /* Execute macro                */
  17. extern  int     fileread();             /* Get a file, read only        */
  18. extern  int     filefind();        /* Get a file, read write       */
  19. extern  int     filewrite();            /* Write a file                 */
  20. extern  int     filesave();             /* Save current file            */
  21. extern  int     filename();             /* Adjust file name             */
  22. extern  int     getccol();              /* Get current column           */
  23. extern  int     gotobol();              /* Move to start of line        */
  24. extern  int     forwchar();             /* Move forward by characters   */
  25. extern  int     gotoeol();              /* Move to end of line          */
  26. extern  int     backchar();             /* Move backward by characters  */
  27. extern  int     forwline();             /* Move forward by lines        */
  28. extern  int     backline();             /* Move backward by lines       */
  29. extern  int     forwpage();             /* Move forward by pages        */
  30. extern  int     backpage();             /* Move backward by pages       */
  31. extern  int     gotobob();              /* Move to start of buffer      */
  32. extern  int     gotoeob();              /* Move to end of buffer        */
  33. extern  int     setfillcol();           /* Set fill column.             */
  34. extern  int     setmark();              /* Set mark                     */
  35. extern  int     swapmark();             /* Swap "." and mark            */
  36. extern  int     forwsearch();           /* Search forward               */
  37. extern  int     backsearch();           /* Search backwards             */
  38. extern    int    sreplace();        /* search and replace        */
  39. extern    int    qreplace();        /* search and replace w/query    */
  40. extern  int     showcpos();             /* Show the cursor position     */
  41. extern  int     nextwind();             /* Move to the next window      */
  42. extern  int     prevwind();             /* Move to the previous window  */
  43. extern  int     onlywind();             /* Make current window only one */
  44. extern  int     splitwind();            /* Split current window         */
  45. extern  int     mvdnwind();             /* Move window down             */
  46. extern  int     mvupwind();             /* Move window up               */
  47. extern  int     enlargewind();          /* Enlarge display window.      */
  48. extern  int     shrinkwind();           /* Shrink window.               */
  49. extern  int     listbuffers();          /* Display list of buffers      */
  50. extern  int     usebuffer();            /* Switch a window to a buffer  */
  51. extern  int     killbuffer();           /* Make a buffer go away.       */
  52. extern  int     reposition();           /* Reposition window            */
  53. extern  int     refresh();              /* Refresh the screen           */
  54. extern  int     twiddle();              /* Twiddle characters           */
  55. extern  int     tab();                  /* Insert tab                   */
  56. extern  int     newline();              /* Insert CR-LF                 */
  57. extern  int     indent();               /* Insert CR-LF, then indent    */
  58. extern  int     openline();             /* Open up a blank line         */
  59. extern  int     deblank();              /* Delete blank lines           */
  60. extern  int     quote();                /* Insert literal               */
  61. extern  int     backword();             /* Backup by words              */
  62. extern  int     forwword();             /* Advance by words             */
  63. extern  int     forwdel();              /* Forward delete               */
  64. extern  int     backdel();              /* Backward delete              */
  65. extern  int     killtext();             /* Kill forward                 */
  66. extern  int     yank();                 /* Yank back from killbuffer.   */
  67. extern  int     upperword();            /* Upper case word.             */
  68. extern  int     lowerword();            /* Lower case word.             */
  69. extern  int     upperregion();          /* Upper case region.           */
  70. extern  int     lowerregion();          /* Lower case region.           */
  71. extern  int     capword();              /* Initial capitalize word.     */
  72. extern  int     delfword();             /* Delete forward word.         */
  73. extern  int     delbword();             /* Delete backward word.        */
  74. extern  int     killregion();           /* Kill region.                 */
  75. extern  int     copyregion();           /* Copy region to kill buffer.  */
  76. extern  int     spawncli();             /* Run CLI in a subjob.         */
  77. extern  int     spawn();                /* Run a command in a subjob.   */
  78. #if    BSD
  79. extern    int    bktoshell();        /* suspend emacs to parent shell*/
  80. extern    int    rtfrmshell();        /* return from a suspended state*/
  81. #endif
  82. extern  int     quickexit();            /* low keystroke style exit.    */
  83. extern    int    setmode();        /* set an editor mode        */
  84. extern    int    delmode();        /* delete a mode        */
  85. extern    int    gotoline();        /* go to a numbered line    */
  86. extern    int    namebuffer();        /* rename the current buffer    */
  87. #if    WORDPRO
  88. extern    int    gotobop();        /* go to beginning/paragraph    */
  89. extern    int    gotoeop();        /* go to end/paragraph        */
  90. extern    int    fillpara();        /* fill current paragraph    */
  91. #endif
  92. extern    int    help();            /* get the help file here    */
  93. extern    int    deskey();        /* describe a key's binding    */
  94. extern    int    viewfile();        /* find a file in view mode    */
  95. extern    int    insfile();        /* insert a file        */
  96. extern    int    scrnextup();        /* scroll next window back    */
  97. extern    int    scrnextdw();        /* scroll next window down    */
  98. extern    int    bindtokey();        /* bind a function to a key    */
  99. extern    int    unbindkey();        /* unbind a key's function    */
  100. extern    int    namedcmd();        /* execute named command    */
  101. extern    int    desbind();        /* describe bindings        */
  102. extern    int    execcmd();        /* execute a command line    */
  103. extern    int    execbuf();        /* exec commands from a buffer    */
  104. extern    int    execfile();        /* exec commands from a file    */
  105. extern    int    nextbuffer();        /* switch to the next buffer    */
  106. #if    WORDPRO
  107. extern    int    killpara();        /* kill the current paragraph    */
  108. #endif
  109. extern    int    setgmode();        /* set a global mode        */
  110. extern    int    delgmode();        /* delete a global mode        */
  111. extern    int    insspace();        /* insert a space forword    */
  112. extern    int    forwhunt();        /* hunt forward for next match    */
  113. extern    int    backhunt();        /* hunt backwards for next match*/
  114. extern    int    pipecmd();        /* pipe command into buffer    */
  115. extern    int    filter();        /* filter buffer through dos    */
  116. extern    int    delwind();        /* delete the current window    */
  117. extern    int    cbuf1();        /* execute numbered comd buffer */
  118. extern    int    cbuf2();
  119. extern    int    cbuf3();
  120. extern    int    cbuf4();
  121. extern    int    cbuf5();
  122. extern    int    cbuf6();
  123. extern    int    cbuf7();
  124. extern    int    cbuf8();
  125. extern    int    cbuf9();
  126. extern    int    cbuf10();
  127. extern    int    cbuf11();
  128. extern    int    cbuf12();
  129. extern    int    cbuf13();
  130. extern    int    cbuf14();
  131. extern    int    cbuf15();
  132. extern    int    cbuf16();
  133. extern    int    cbuf17();
  134. extern    int    cbuf18();
  135. extern    int    cbuf19();
  136. extern    int    cbuf20();
  137. extern    int    cbuf21();
  138. extern    int    cbuf22();
  139. extern    int    cbuf23();
  140. extern    int    cbuf24();
  141. extern    int    cbuf25();
  142. extern    int    cbuf26();
  143. extern    int    cbuf27();
  144. extern    int    cbuf28();
  145. extern    int    cbuf29();
  146. extern    int    cbuf30();
  147. extern    int    cbuf31();
  148. extern    int    cbuf32();
  149. extern    int    cbuf33();
  150. extern    int    cbuf34();
  151. extern    int    cbuf35();
  152. extern    int    cbuf36();
  153. extern    int    cbuf37();
  154. extern    int    cbuf38();
  155. extern    int    cbuf39();
  156. extern    int    cbuf40();
  157. extern    int    storemac();        /* store text for macro        */
  158. extern    int    resize();        /* resize current window    */
  159. extern    int    clrmes();        /* clear the message line    */
  160. extern    int    meta();            /* meta prefix dummy function    */
  161. extern    int    cex();            /* ^X prefix dummy function    */
  162. extern    int    unarg();        /* ^U repeat arg dummy function    */
  163. extern    int    istring();        /* insert string in text    */
  164. extern    int    unmark();        /* unmark current buffer    */
  165. #if    ISRCH
  166. extern    int    fisearch();        /* forward incremental search    */
  167. extern    int    risearch();        /* reverse incremental search    */
  168. #endif
  169. #if    WORDPRO
  170. extern    int    wordcount();        /* count words in region    */
  171. #endif
  172. extern    int    savewnd();        /* save current window        */
  173. extern    int    restwnd();        /* restore current window    */
  174. extern    int    upscreen();        /* force screen update        */
  175. extern    int    writemsg();        /* write text on message line    */
  176. #if    FLABEL
  177. extern    int    fnclabel();        /* set function key label    */
  178. #endif
  179. #if    APROP
  180. extern    int    apro();            /* apropos fuction        */
  181. #endif
  182. #if    CRYPT
  183. extern    int    setkey();        /* set encryption key        */
  184. #endif
  185. extern    int    wrapword();        /* wordwrap function        */
  186. #if    CFENCE
  187. extern    int    getfence();        /* move cursor to a matching fence */
  188. #endif
  189. extern    int    newsize();        /* change the current screen size */
  190. extern    int    setvar();        /* set a variables value */
  191. extern    int    newwidth();        /* change the current screen width */
  192. #if    AEDIT
  193. extern    int    trim();            /* trim whitespace from end of line */
  194. extern    int    detab();        /* detab rest of line */
  195. extern    int    entab();        /* entab rest of line */
  196. #endif
  197. #if    PROC
  198. extern    int    storeproc();        /* store names procedure */
  199. extern    int    execproc();        /* execute procedure */
  200. #endif
  201. extern    int    nullproc();        /* does nothing... */
  202.  
  203. /*    Name to function binding table
  204.  
  205.         This table gives the names of all the bindable functions
  206.     end their C function address. These are used for the bind-to-key
  207.     function.
  208. */
  209.  
  210. NBIND    names[] = {
  211.     {"abort-command",        ctrlg},
  212.     {"add-mode",            setmode},
  213.     {"add-global-mode",        setgmode},
  214. #if    APROP
  215.     {"apropos",            apro},
  216. #endif
  217.     {"backward-character",        backchar},
  218.     {"begin-macro",            ctlxlp},
  219.     {"beginning-of-file",        gotobob},
  220.     {"beginning-of-line",        gotobol},
  221.     {"bind-to-key",            bindtokey},
  222.     {"buffer-position",        showcpos},
  223.     {"case-region-lower",        lowerregion},
  224.     {"case-region-upper",        upperregion},
  225.     {"case-word-capitalize",    capword},
  226.     {"case-word-lower",        lowerword},
  227.     {"case-word-upper",        upperword},
  228.     {"change-file-name",        filename},
  229.     {"change-screen-size",        newsize},
  230.     {"change-screen-width",        newwidth},
  231.     {"clear-and-redraw",        refresh},
  232.     {"clear-message-line",        clrmes},
  233.     {"copy-region",            copyregion},
  234. #if    WORDPRO
  235.     {"count-words",            wordcount},
  236. #endif
  237.     {"ctlx-prefix",            cex},
  238.     {"delete-blank-lines",        deblank},
  239.     {"delete-buffer",        killbuffer},
  240.     {"delete-mode",            delmode},
  241.     {"delete-global-mode",        delgmode},
  242.     {"delete-next-character",    forwdel},
  243.     {"delete-next-word",        delfword},
  244.     {"delete-other-windows",    onlywind},
  245.     {"delete-previous-character",    backdel},
  246.     {"delete-previous-word",    delbword},
  247.     {"delete-window",        delwind},
  248.     {"describe-bindings",        desbind},
  249.     {"describe-key",        deskey},
  250. #if    AEDIT
  251.     {"detab-line",            detab},
  252. #endif
  253.     {"end-macro",            ctlxrp},
  254.     {"end-of-file",            gotoeob},
  255.     {"end-of-line",            gotoeol},
  256. #if    AEDIT
  257.     {"entab-line",            entab},
  258. #endif
  259.     {"exchange-point-and-mark",    swapmark},
  260.     {"execute-buffer",        execbuf},
  261.     {"execute-command-line",    execcmd},
  262.     {"execute-file",        execfile},
  263.     {"execute-macro",        ctlxe},
  264.     {"execute-macro-1",        cbuf1},
  265.     {"execute-macro-2",        cbuf2},
  266.     {"execute-macro-3",        cbuf3},
  267.     {"execute-macro-4",        cbuf4},
  268.     {"execute-macro-5",        cbuf5},
  269.     {"execute-macro-6",        cbuf6},
  270.     {"execute-macro-7",        cbuf7},
  271.     {"execute-macro-8",        cbuf8},
  272.     {"execute-macro-9",        cbuf9},
  273.     {"execute-macro-10",        cbuf10},
  274.     {"execute-macro-11",        cbuf11},
  275.     {"execute-macro-12",        cbuf12},
  276.     {"execute-macro-13",        cbuf13},
  277.     {"execute-macro-14",        cbuf14},
  278.     {"execute-macro-15",        cbuf15},
  279.     {"execute-macro-16",        cbuf16},
  280.     {"execute-macro-17",        cbuf17},
  281.     {"execute-macro-18",        cbuf18},
  282.     {"execute-macro-19",        cbuf19},
  283.     {"execute-macro-20",        cbuf20},
  284.     {"execute-macro-21",        cbuf21},
  285.     {"execute-macro-22",        cbuf22},
  286.     {"execute-macro-23",        cbuf23},
  287.     {"execute-macro-24",        cbuf24},
  288.     {"execute-macro-25",        cbuf25},
  289.     {"execute-macro-26",        cbuf26},
  290.     {"execute-macro-27",        cbuf27},
  291.     {"execute-macro-28",        cbuf28},
  292.     {"execute-macro-29",        cbuf29},
  293.     {"execute-macro-30",        cbuf30},
  294.     {"execute-macro-31",        cbuf31},
  295.     {"execute-macro-32",        cbuf32},
  296.     {"execute-macro-33",        cbuf33},
  297.     {"execute-macro-34",        cbuf34},
  298.     {"execute-macro-35",        cbuf35},
  299.     {"execute-macro-36",        cbuf36},
  300.     {"execute-macro-37",        cbuf37},
  301.     {"execute-macro-38",        cbuf38},
  302.     {"execute-macro-39",        cbuf39},
  303.     {"execute-macro-40",        cbuf40},
  304.     {"execute-named-command",    namedcmd},
  305. #if    PROC
  306.     {"execute-procedure",        execproc},
  307. #endif
  308.     {"exit-emacs",            quit},
  309. #if    WORDPRO
  310.     {"fill-paragraph",        fillpara},
  311. #endif
  312.     {"filter-buffer",        filter},
  313.     {"find-file",            filefind},
  314.     {"forward-character",        forwchar},
  315.     {"goto-line",            gotoline},
  316. #if    CFENCE
  317.     {"goto-matching-fence",        getfence},
  318. #endif
  319.     {"grow-window",            enlargewind},
  320.     {"handle-tab",            tab},
  321.     {"hunt-forward",        forwhunt},
  322.     {"hunt-backward",        backhunt},
  323.     {"help",            help},
  324.     {"i-shell",            spawncli},
  325. #if    ISRCH
  326.     {"incremental-search",        fisearch},
  327. #endif
  328.     {"insert-file",            insfile},
  329.     {"insert-space",        insspace},
  330.     {"insert-string",        istring},
  331. #if    WORDPRO
  332.     {"kill-paragraph",        killpara},
  333. #endif
  334.     {"kill-region",            killregion},
  335.     {"kill-to-end-of-line",        killtext},
  336. #if    FLABEL
  337.     {"label-function-key",        fnclabel},
  338. #endif
  339.     {"list-buffers",        listbuffers},
  340.     {"meta-prefix",            meta},
  341.     {"move-window-down",        mvdnwind},
  342.     {"move-window-up",        mvupwind},
  343.     {"name-buffer",            namebuffer},
  344.     {"newline",            newline},
  345.     {"newline-and-indent",        indent},
  346.     {"next-buffer",            nextbuffer},
  347.     {"next-line",            forwline},
  348.     {"next-page",            forwpage},
  349. #if    WORDPRO
  350.     {"next-paragraph",        gotoeop},
  351. #endif
  352.     {"next-window",            nextwind},
  353.     {"next-word",            forwword},
  354.     {"nop",                nullproc},
  355.     {"open-line",            openline},
  356.     {"pipe-command",        pipecmd},
  357.     {"previous-line",        backline},
  358.     {"previous-page",        backpage},
  359. #if    WORDPRO
  360.     {"previous-paragraph",        gotobop},
  361. #endif
  362.     {"previous-window",        prevwind},
  363.     {"previous-word",        backword},
  364.     {"query-replace-string",    qreplace},
  365.     {"quick-exit",            quickexit},
  366.     {"quote-character",        quote},
  367.     {"read-file",            fileread},
  368.     {"redraw-display",        reposition},
  369.     {"resize-window",        resize},
  370.     {"restore-window",        restwnd},
  371.     {"replace-string",        sreplace},
  372. #if    ISRCH
  373.     {"reverse-incremental-search",    risearch},
  374. #endif
  375. #if    PROC
  376.     {"run",                execproc},
  377. #endif
  378.     {"save-file",            filesave},
  379.     {"save-window",            savewnd},
  380.     {"scroll-next-up",        scrnextup},
  381.     {"scroll-next-down",        scrnextdw},
  382.     {"search-forward",        forwsearch},
  383.     {"search-reverse",        backsearch},
  384.     {"select-buffer",        usebuffer},
  385.     {"set",                setvar},
  386. #if    CRYPT
  387.     {"set-encryption-key",        setkey},
  388. #endif
  389.     {"set-fill-column",        setfillcol},
  390.     {"set-mark",            setmark},
  391.     {"shell-command",        spawn},
  392.     {"shrink-window",        shrinkwind},
  393.     {"split-current-window",    splitwind},
  394.     {"store-macro",            storemac},
  395. #if    PROC
  396.     {"store-procedure",        storeproc},
  397. #endif
  398. #if    BSD
  399.     {"suspend-emacs",        bktoshell},
  400. #endif
  401.     {"transpose-characters",    twiddle},
  402. #if    AEDIT
  403.     {"trim-line",            trim},
  404. #endif
  405.     {"unbind-key",            unbindkey},
  406.     {"universal-argument",        unarg},
  407.     {"unmark-buffer",        unmark},
  408.     {"update-screen",        upscreen},
  409.     {"view-file",            viewfile},
  410.     {"wrap-word",            wrapword},
  411.     {"write-file",            filewrite},
  412.     {"write-message",        writemsg},
  413.     {"yank",            yank},
  414.  
  415.     {"",            NULL}
  416. };
  417.